import request from '@/utils/request'

// 查询要货单列表
export function listOdrLst(query) {
  return request({
    url: '/xiaoshou/odrLst/list',
    method: 'get',
    params: query
  })
}

// 查询要货单详细
export function getOdrLst(id) {
  return request({
    url: '/xiaoshou/odrLst/' + id,
    method: 'get'
  })
}

// 新增要货单
export function addOdrLst(data) {
  return request({
    url: '/xiaoshou/odrLst',
    method: 'post',
    data: data
  })
}

// 修改要货单
export function updateOdrLst(data) {
  return request({
    url: '/xiaoshou/odrLst',
    method: 'put',
    data: data
  })
}

// 删除要货单
export function delOdrLst(id) {
  return request({
    url: '/xiaoshou/odrLst/' + id,
    method: 'delete'
  })
}
